/* Full CSS code with modifications */

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: auto;
    background-color: #ffffff;
}

.container {
    display: flex;
    background-color: #ffffff; /* Adăugat culoarea de fundal pentru a acoperi full-width */
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; /* Center the items horizontally */
    height: 100vh;
    width: 250px; /* Set a fixed width */
    overflow-y: auto; /* Make it scrollable */
    padding: 20px;
}

#sidebar-content {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

th {
    background-color: black !important;
    color: white;
}

.sidebar h1 {
    margin-bottom: 20px;
}

.main-content {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-group button {
    width: 100%; 
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #ff6820;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-product {
    background-color: #0c750c;
}

#download-pdf {
    background-color: black;
}

#product-fields select {
    margin-bottom: 10px;
}

.button-group button:hover {
    background-color: #ff6820;
}

#offer-details {
    text-align: center;
}

.offer-table-container {
    position: relative;
}

#offer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#offer-table th,
#offer-table td {
    padding: 10px;
    border-bottom: 1px solid #b8b8b8;
    text-align: center;
}

#offer-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.offer-table-container img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 210px; 
}

.pdf-style {
    font-size: 25px;
    font-weight: bold;
}

.delete-button {
    margin-left: 10px;
    margin-top: 2px;
    padding: 5px;
    cursor: pointer;
    align-self: flex-start;
}

.product-field {
    display: grid;
    grid-template-columns: 1fr auto; /* Adjusted grid-template-columns to remove unnecessary columns */
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    gap: 2px;
}

.input-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.product-field .product-select {
    padding: 5px; /* Adjusted padding for consistency */
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    width: 120px;
    height: 30px;
}

.product-field .quantity-input {
    padding: 5px; /* Adjusted padding for consistency */
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 120px;
    height: 30px;
    box-sizing: border-box;
    margin-top: 0.5px;
}

.button-group {
    margin-top: 10px;
}

.button-group button {
    margin-right: 10px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin-top: -15%;
    overflow: hidden;
}

.login-container h1 {
    margin-bottom: 20px;
}

.login-container form {
    width: 300px;
    padding: 20px;
    border: 1px solid #b8b8b8;
    border-radius: 5px;
    background-color: #f2f2f2;
}

.login-container form label {
    display: block;
    text-align: left;
    margin-bottom: 10px;
}

.login-container form input[type="text"],
.login-container form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.login-container form input[type="submit"] {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background-color: #ff6820;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container form input[type="submit"]:hover {
    background-color: #ff6820;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-container img {
    margin-top: 5%;
    width: 15%;
}

.logout-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logout-button {
    margin-top: 30%;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

#logout-button i {
    margin-right: 5px;
}

@keyframes spinFade {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

.logo-spin-fade {
    animation: spinFade 2s ease-in-out forwards;
}

.shake {
    animation: shake 0.5s;
    border: 2px solid red;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.custom-name-input, .custom-price-input {
    width: 100%;
    margin-top: 2px !important;
}

.custom-price-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 120px; 
    height: 30px; 
    box-sizing: border-box; 
    margin-top: 10px;
}

.custom-name-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 120px; 
    height: 30px; 
    box-sizing: border-box; 
    margin-top: 10px;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 1.5s;
    animation-fill-mode: forwards;
}

@keyframes fadeOutAndScale {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.fade-out-and-scale {
    animation: fadeOutAndScale 1.5s;
    animation-fill-mode: forwards;
}
